﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DataEncryption
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("》》》》》》》》》》》MD5加密《《《《《《《《《《《");
            _MD5 md5 = new _MD5();
            var _md5= md5.ToMD5("asdfgh");

            Console.WriteLine("asdfgh加密后为》》》");
            Console.WriteLine( _md5);
            Console.WriteLine();

            var _md5_16 = _MD5.Get16MD5One("asdfgh");
            Console.WriteLine("asdfgh加密后为(_md5_16)》》》");
            Console.WriteLine(_md5_16);
            Console.WriteLine();


            Console.WriteLine("》》》》》》》》》》》DES5加密《《《《《《《《《《《");
            Console.WriteLine("asdf加密后为》》》");
            var _des = _DES.DESEncrypt("asdf", "14785236", "36985214");
            Console.WriteLine(_des);
            Console.WriteLine();

            Console.WriteLine("asdf解密后为》》》");
            var _des1 = _DES.DESDecrypt(_des, "14785236", "36985214");
            Console.WriteLine(_des1);
            Console.WriteLine();

            Console.ReadLine();
        }
    }
}
